<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#Q {font-family: Tahoma, Verdana, Arial;
font-size: 12px;
color: #000000;
}
.style22 {font-size: 16px}
-->
</style>
</head>

<body>
<table width="980" height="94" border="0" >
  <tr>
    <?php  while ($gt=@mysql_fetch_array($getStuff)){ ?>
    <td height="21" id="Q">Check</td>
    <td height="21" id="Q">ID</td>
    <td width="151" id="Q">Order ID</td>
    <td width="140" id="Q">Customer Name</td>
    <td width="108" id="Q">Table Name</td>
    <td width="141" id="Q">Order Content</td>
    <td width="100" id="Q">Price</td>
    <td width="112" id="Q">Date</td>
    <td width="72" id="Q">Time</td>
  </tr>
  <tr>
    <td width="50" height="24" valign="top"><input name="checkbox[]" type="checkbox" id="checkbox[]" value="<?php echo $get['ID']; ?>"/></td>
    <td width="70" valign="top" id="Q"><?php echo $gt['ID']; ?></td>
    <td height="24" valign="top" id="Q"><?php echo $gt['orderID']; ?></td>
    <td height="24" valign="top" id="Q"><?php echo $gt['custName']; ?></td>
    <td height="24" valign="top" id="Q"><?php echo $gt['tableName']; ?></td>
    <td height="24" valign="top" id="Q"><?php echo $gt['Content']; ?></td>
    <td height="24" valign="top" id="Q"><?php echo $gt['Price']; ?></td>
    <td height="24" valign="top" id="Q"><?php echo $gt['Date']; ?></td>
    <td height="24" valign="top" id="Q"><?php echo $gt['time']; ?></td>
  </tr>
  <tr>
    <td height="41" colspan="9"><table width="976" border="0">
      <tr>
        <td width="286" height="24">udyfglih;j'k</td>
        <td width="150"><input type="submit" name="see" value="View Data" id="Q2" style="width:150px" /></td>
        <td width="150"><input type="submit" name="Q" value="Delete" id="Q" style="width:150px" /></td>
        <td width="321">&nbsp;</td>
        <td width="47">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <?php } ?>
</table>
<table width="773" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="102" align="center" valign="middle" bordercolor="#E6FFCC" bgcolor="#E6FFCC" style="border-bottom:double 1px #CCCCCC;border-left:double 1px #CCCCCC;border-right:double 1px #CCCCCC;border-top:double 1px #CCCCCC;">Course Unit </td>
    <td width="95" align="center" valign="middle" bordercolor="#E6FFCC" bgcolor="#E6FFCC" style="border-bottom:double 1px #CCCCCC;border-right:double 1px #CCCCCC;border-top:double 1px #CCCCCC;"><span class="style22">Test 1 </span></td>
    <td width="104" align="center" valign="middle" bordercolor="#E6FFCC" bgcolor="#E6FFCC"style="border-bottom:double 1px #CCCCCC;border-right:double 1px #CCCCCC;border-top:double 1px #CCCCCC;&gt;&lt;span class="style5="style5""><span class="style22">Test 2 </span></span></td>
    <td width="118" align="center" valign="middle" bordercolor="#E6FFCC" bgcolor="#E6FFCC"style="border-bottom:double 1px #CCCCCC;border-right:double 1px #CCCCCC;border-top:double 1px #CCCCCC;&gt;&lt;span class="style5="style5""><span class="style22">CourseWork</span></span></td>
    <td width="112" align="center" valign="middle" bordercolor="#E6FFCC" bgcolor="#E6FFCC"style="border-bottom:double 1px #CCCCCC;border-right:double 1px #CCCCCC;border-top:double 1px #CCCCCC;&gt;&lt;span class="style5="style5""><span class="style22">Exam</span></span></td>
    <td width="114" align="center" valign="middle" bordercolor="#E6FFCC" bgcolor="#E6FFCC"style="border-bottom:double 1px #CCCCCC;border-right:double 1px #CCCCCC;border-top:double 1px #CCCCCC;&gt;&lt;span class="style5="style5""><span class="style22">Final mark </span></span></td>
    <td width="128" align="center" valign="middle" bordercolor="#E6FFCC" bgcolor="#E6FFCC"style="border-bottom:double 1px #CCCCCC;border-right:double 1px #CCCCCC;border-top:double 1px #CCCCCC;&gt;&lt;span class="style5="style5""><span class="style22">Comment</span></span></td>
  </tr>
  <?php if($submit=="Go"){ while($get=mysql_fetch_array($ret,MYSQL_ASSOC)){?>
  <tr>
    <td align="center" valign="middle" bordercolor="#FFFFFF" bgcolor="#FFFFFF"style="border-left:double 1px #CCCCCC;border-right:double 1px #CCCCCC;border-bottom:double 1px #CCCCCC;"><?php echo $get['cunit'];?></td>
    <td align="center" valign="middle" bordercolor="#FFFFFF" bgcolor="#FFFFFF"style="border-right:double 1px #CCCCCC;border-bottom:double 1px #CCCCCC;"><?php echo $get['test1'];?></td>
    <td align="center" valign="middle" bordercolor="#FFFFFF" bgcolor="#FFFFFF"style="border-right:double 1px #CCCCCC;border-bottom:double 1px #CCCCCC;"><?php echo $get['test2'];?></td>
    <td align="center" valign="middle" bordercolor="#FFFFFF" bgcolor="#FFFFFF"style="border-right:double 1px #CCCCCC;border-bottom:double 1px #CCCCCC;"><?php echo $get['cwork'];?></td>
    <td align="center" valign="middle" bordercolor="#FFFFFF" bgcolor="#FFFFFF"style="border-right:double 1px #CCCCCC;border-bottom:double 1px #CCCCCC;"><?php echo $get['exam'];?></td>
    <td align="center" valign="middle" bordercolor="#FFFFFF" bgcolor="#FFFFFF"style="border-right:double 1px #CCCCCC;border-bottom:double 1px #CCCCCC;"><?php 
	
					$a=max($get['test1'],$get['test2']);
					$a2= ((($a)/100)*40);
					$b=max($get['test2'],$get['cwork']);
					$b2=((($b)/100)*40);
					$c=(($a2+$b2)/2);
					$d=((($get['exam'])/100)*60);
					$e=$c+$d;
					echo round($e);
					
					?></td>
    <td align="center" valign="middle" bordercolor="#FFFFFF" bgcolor="#FFFFFF"style="border-right:double 1px #CCCCCC;border-bottom:double 1px #CCCCCC;"><?php echo $get['comment'];?></td>
  </tr>
  <?php }}?>
</table>
<table width="981" height="58" border="0">
  <tr>
    <td width="54" height="16" bgcolor="#FF9900" id="Q3" bordercolor="#E6FFCC" style="border-bottom:double 1px #CCCCCC;border-left:double 1px #CCCCCC;border-top:double 1px #CCCCCC;border-right:double 1px #CCCCCC;">Check</td>
    <td width="95" height="16" bgcolor="#FF9900" id="Q3" style="border-bottom:double 1px #CCCCCC;border-top:double 1px #CCCCCC;border-right:double 1px #CCCCCC;">ID</td>
    <td width="74" bgcolor="#FF9900" id="Q3" style="border-bottom:double 1px #CCCCCC;border-top:double 1px #CCCCCC;border-right:double 1px #CCCCCC;">Order ID</td>
    <td width="143" bgcolor="#FF9900" id="Q3" style="border-bottom:double 1px #CCCCCC;border-top:double 1px #CCCCCC;border-right:double 1px #CCCCCC;">Customer Name</td>
    <td width="95" bgcolor="#FF9900" id="Q3" style="border-bottom:double 1px #CCCCCC;border-top:double 1px #CCCCCC;border-right:double 1px #CCCCCC;">Table Name</td>
    <td width="155" bgcolor="#FF9900" id="Q3" style="border-bottom:double 1px #CCCCCC;border-top:double 1px #CCCCCC;border-right:double 1px #CCCCCC;">Order Content</td>
    <td width="123" bgcolor="#FF9900" id="Q3" style="border-bottom:double 1px #CCCCCC;border-top:double 1px #CCCCCC;border-right:double 1px #CCCCCC;">Price</td>
    <td width="92" bgcolor="#FF9900" id="Q3" style="border-bottom:double 1px #CCCCCC;border-top:double 1px #CCCCCC;border-right:double 1px #CCCCCC;">Date</td>
    <td width="92" bgcolor="#FF9900" id="Q3" style="border-bottom:double 1px #CCCCCC;border-top:double 1px #CCCCCC;border-right:double 1px #CCCCCC;">Time</td>
  </tr>
  <?php  while ($gt=@mysql_fetch_array($getStuff)){ ?>
  <tr>
    <td width="50" height="24" valign="top" style="border-bottom:double 1px #CCCCCC;border-left:double 1px @CCCCCC;border-top:double 1px #CCCCCC;border-right:double 1px #CCCCCC;"><input name="checkbox[]2" type="checkbox" id="checkbox[]2" value="<?php echo $get['ID']; ?>"/></td>
    <td width="70" valign="top" id="Q3" style="border-bottom:double 1px #CCCCCC;border-top:double 1px #CCCCCC;border-left:double 1px #CCCCCC;border-right:double 1px #CCCCCC;"><?php echo $gt['ID']; ?></td>
    <td height="24" valign="top" id="Q3" style="border-bottom:double 1px #CCCCCC;border-top:double 1px #CCCCCC;border-right:double 1px #CCCCCC;"><?php echo $gt['orderID']; ?></td>
    <td height="24" valign="top" id="Q3" style="border-bottom:double 1px #CCCCCC;border-top:double 1px #CCCCCC;border-right:double 1px #CCCCCC;"><?php echo $gt['custName']; ?></td>
    <td height="24" valign="top" id="Q3" style="border-bottom:double 1px #CCCCCC;border-top:double 1px #CCCCCC;border-right:double 1px #CCCCCC;"><?php echo $gt['tableName']; ?></td>
    <td height="24" valign="top" id="Q3" style="border-bottom:double 1px #CCCCCC;border-top:double 1px #CCCCCC;border-right:double 1px #CCCCCC;"><?php echo $gt['Content']; ?></td>
    <td height="24" valign="top" id="Q3" style="border-bottom:double 1px #CCCCCC;border-top:double 1px #CCCCCC;border-right:double 1px #CCCCCC;"><?php echo $gt['Price']; ?></td>
    <td height="24" valign="top" id="Q3" style="border-bottom:double 1px #CCCCCC;border-top:double 1px #CCCCCC;border-right:double 1px #CCCCCC;"><?php echo $gt['Date']; ?></td>
    <td height="24" valign="top" id="Q3" style="border-bottom:double 1px #CCCCCC;border-top:double 1px #CCCCCC;border-right:double 1px #CCCCCC;"><?php echo $gt['time']; ?></td>
  </tr>
  <?php } ?>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
